package com.liuzhilong.test.api;


import java.io.IOException;
import java.io.InputStreamReader;

public class ResourceAutoClose {
    public static void main(String[] args) {
        InputStreamReader reader =new InputStreamReader(System.in);
        try(reader){
            reader.read();
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
